﻿using BookingSystemModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace WcfBookingService
{
    [ServiceContract(Name = "IInternalBookingService")]
    public interface IInternalBookingService
    {
        [OperationContract(Name = "CreateSubscription")]
        //int CreateSubscription(String _title, String _description, int _attendeeAmount, DateTime _start, DateTime _end, Entity _payee, String _note);
        int CreateSubscription(Subscription subscription);
        /*
        //extension + country code + area code + phone m_Numbe
        [OperationContract(Name = "CreatePhone")]
        void CreatePhone(Boolean isPrimary, Int32? extension, Int32? countryCode, Int32? areaCode, Int32 phoneNumber);

        [OperationContract(Name = "GetPhone")]
        Phone GetPhone(Int32 phoneNumber);

        [OperationContract(Name = "GetAllPhones")]
        List<Phone> GetAllPhones();

        [OperationContract(Name = "UpdatePhone")]
        Boolean UpdatePhone(Phone phone);

        [OperationContract(Name = "DeletePhone")]
        Boolean DeletePhone(Int32 id);
        */
    }
}
